<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //声明一个数组
        const xiyou = ['唐僧','孙悟空','猪八戒','沙僧']
        //使用 for ... of 遍历数组  保存的是键值  for ... in 保存的是键名
        // for(let v of xiyou){
        //     console.log(v);
        // }

        console.log(xiyou);
    </script>
</body>
</html>